package com.mvvmhabit.org.custom

import android.content.Context
import androidx.recyclerview.widget.GridLayoutManager
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.StaggeredGridLayoutManager

fun linear(context: Context): LinearLayoutManager {
    return LinearLayoutManager(context)
}

fun linear(context: Context, orientation: Int, reverseLayout: Boolean): LinearLayoutManager {
    return LinearLayoutManager(context, orientation, reverseLayout)
}

fun grid(
    context: Context,
    spanCount: Int,
    orientation: Int,
    reverseLayout: Boolean
): GridLayoutManager {
    return GridLayoutManager(context, spanCount, orientation, reverseLayout)
}

fun stagger(spanCount: Int, orientation: Int): StaggeredGridLayoutManager {
    return StaggeredGridLayoutManager(spanCount, orientation)
}




